package com.fausto.learnimprint.common.enum

enum class ResultCodeEnum(
    val code: Int,
    var message: String
) {
    SUCCESS(200, "操作成功"),

    FAIL(201, "失败"),

    LOGIN_ERROR(202, "用户名或密码错误"),

    TOKEN_EXPIRED(203, "TOKEN过期"),

    ACCESS_ERROR(403, "权限不足,拒绝访问"),

    REMOTE_ERROR(204, "远程调用失败"),

    REPEAT_ERROR(205, "重复操作"),

    SERVICE_ERROR(500, "业务层错误"),

    NOT_FOUND(404, "资源不存在")
}